#include <QtGui/QApplication>
#include "mainwindow.h"
#include "decorate.h"

int main(int argc, char *argv[])
{
//    QCoreApplication a(argc, argv);
    int option;
    while((option = getopt(argc,argv,"hg")) != -1)
    {
        switch(option)
        {
        case 'h':
            outputHelpInfomation();
            break;
        case 'g':
            QApplication a(argc, argv);
            MainWindow w;
            w.show();
            return a.exec();
        }
        return EXIT_SUCCESS;
    }

    return decorate(argc,argv);
//    return a.exec();
}
